package com.hzqy.persistence.dao.industry;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.YxtAcountInfoVo;
import com.hzqy.web.vo.industry.pension.OrderVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public class PensionUserDao extends PersistenceDao<YxtAcountInfoVo,Integer> {
    protected final Logger LOG = LoggerFactory.getLogger(getClass());

    public Integer addUserTimes(String name){
        return getSqlSession().update(this.getNamespace()+"addUserTimes",name);
    }

    public List<OrderVo> getOrderInfo(OrderVo orderVo){
        return getSqlSession().selectList(this.getNamespace()+"getOrderInfo", orderVo);
    }
    public Integer updateOrderStatus(String serverId,int status){
        Map<String,Object> map = new HashMap<String, Object>();
        map.put("serverId", serverId);
        map.put("status", status);
        return getSqlSession().update(this.getNamespace()+"updateOrderStatus", map);
    }

}